GUI Help > General > setGadgetShape

setGadgetShape
setGadgetShape handle gadget, str maskFile

Description:
Sets the shape of a gadget (ie. oval, rounded corners etc.). Normally all windows have a rectangular shape, but you can change this using setGadgetShape to any shape you wish. A mask file is used to determine which areas of the gadget should be made transparent and which should be opaque.

Return Value:


Parameters:
gadget Handle of a gadget
maskFile Filename of a bitmap file which specifies which areas of the gadget are transparent and which are opaque. Black represents transparent, and white represents visible or opaque. The bitmap should be the same size as the gadget.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)